package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Point;
import com.ruoyi.system.mapper.PointMapper;
import com.ruoyi.system.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author HP
 * @Date 2021/3/8
 * @Description TODO
 */
@Service
public class PointServiceImpl implements PointService {
    @Autowired
    private PointMapper pointMapper;
    @Override
    public Point queryByUserId(String user_id) {
        Point point = pointMapper.queryByUserId(user_id);
        return point;
    }

    @Override
    public void updatePoint(Point point) {
        pointMapper.updatePoint(point);
    }

    @Override
    public void savePoint(Point point) {
        pointMapper.savePoint(point);
    }
}
